package com.liuhaoqi.raletiveblog.service;

import com.liuhaoqi.raletiveblog.entity.Resource;
import com.liuhaoqi.raletiveblog.result.business.PageResult.ResourcePageResult;

import java.util.List;

/**
 * @Author liuhaoqi
 * @Date 2020/4/21 10:53
 * @Version 1.0
 */
public interface ResourceService {
    int addResource(Resource resource);
    int updateResourceByResourceId(Resource resource);
    int deleteResourceByResourceId(Long resourceId);
    List<ResourcePageResult> getResourceListMang(int start,int end,int pagesize);
    List<Resource> getResourceList();

    List<Resource> getResourceByTypeList(String resourceType);
}
